package fnic.jsontrans;


/* fieldtypeȡֵ����
 * string:0
 * int:1
 * long:2
 * double:3
 * float:4
 * short:5
 * boolean:6
 */
public class FieldTypeName{ 
	public enum FieldTypeDef {
		ftString(0), ftInt(1), ftLong(2), ftDouble(3),
		ftFloat(4), ftShort(5), ftBoolean(6);
		private int fieldtype;

		private FieldTypeDef(int typedef) {
			fieldtype = typedef;
		}
	}

	private FieldTypeDef type;
	private String name;

	public FieldTypeName(String type, String name){
		this.type = FieldTypeDef.valueOf(type);
		this.name = name;
	}
	
	public FieldTypeDef getType() {
		return type;
	}

	public String getName() {
		return name;
	}
}
